package frogFarm;
import java.io.*;

public class FrogGame {
	
	int money;
	
	public String getUserInput(String prompt){
	       String inputLine  = null;
	       System.out.println(prompt + " ");
	       try {
	    	 BufferedReader is = new BufferedReader(new InputStreamReader(System.in));
	         inputLine = is.readLine();
	         if (inputLine.length() == 0){
	        	 return null;
	         }
	       } catch (IOException e) {
	         System.out.println("IO exception: " + e);
	         System.exit(1);
	       }
	       return inputLine.toLowerCase();
		
	}
	
	public static void main(String[] args) {
		FrogGame game = new FrogGame();
		MaleFrog dad = new MaleFrog();
		FemaleFrog mom = new FemaleFrog();
		
		dad.setName("Fred");
		dad.setColor1("red");
		dad.setColor2("green");
		dad.setDecoration("striped");
		dad.setAction("sleeping");
		
		mom.setName("Anne");
		mom.setColor1("pink");
		mom.setColor2("purple");
		mom.setDecoration("polka-dotted");
		mom.setAction("sleeping");
		
		dad.getInfo();
		mom.getInfo();
		
		Frog child1 = dad.breed(mom, game);
		child1.getInfo();
		
		Frog child2 = dad.breed(mom, game);
		child2.getInfo();
	}

}
